package com.filldream.fastboot.base.response.common;

import lombok.Data;

import java.awt.*;

/**
 * @author RickSun
 * @version 1.0
 * @data 2022-04-28 17:32
 * @Description CaptchaDTO
 */
@Data
public class CaptchaDTO {

    private String code;

    private String answer;

    private String imageBase64;

    private String key;

    public CaptchaDTO init(){
        this.setAnswer("");
        this.setCode("");
        this.imageBase64 = "data:image/png;base64," + this.imageBase64;
        return this;
    }

}
